home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks96 / RoasterJavaWAHTTPCGI.sit / Roaster-Java-WA-HTTP-CGI hack / cgi WA plugin / cgi.r < prev    next >
Text File  |  1996-06-22  |  2KB  |  67 lines

  1. #include <Types.r>
  2. #include <SysTypes.r>
  3.  
  4. #include "ArrangeModule.r.h"
  5.  
  6. #define ModuleName    "CGI"        // Unique module name
  7. #define FullModuleName    "CGI Plug-in"
  8. #define Version            "1.0a1"
  9. #define ModuleID         0x72310000                // Unique module ID
  10. #define ModuleRsrcID -0x8000                    // Base resource ID (needn't be unique)
  11. #define BuildDate    0                            // Replace with current build date
  12.  
  13.  
  14. resource 'vers' (2, purgeable) {
  15.     0x1, 0x0, alpha, 0x1,
  16.     verUS,
  17.     "1.0a1",
  18.     "CGIArranger 1.0a1"
  19. };
  20.  
  21. resource ModuleDefType (ModuleRsrcID, ModuleName, preload, locked)
  22.     {
  23.     keepLocked,                // Module's code resources should always be locked (don't
  24.                                 // lock and unlock for each call)
  25.     loadAtBoot,                // Load the module when Arrange is launched
  26.     ModuleName,                // Unique module name
  27.     ModuleID,                // Unique module ID
  28.     0x00000000,                // Module version
  29.     BuildDate,                // Date when this module was built
  30.     ArrangeAppID,            // Target application (Arrange)
  31.     0x00000700,                // Target system version (7.0.0)
  32.     ArrangePonsVers,        // Target app version (Arrange 2.0)
  33.     0                            // relative ID of root code resource
  34.     };
  35.  
  36.  
  37. // ALRT resource for our plug-in about box
  38. resource 'ALRT' (ModuleRsrcID, purgeable)
  39. {
  40.     {90, 60, 210, 450},
  41.     ModuleRsrcID,
  42.         {    
  43.         OK, visible, silent,
  44.         OK, visible, silent,
  45.         OK, visible, silent,
  46.         OK, visible, silent
  47.         }
  48. #if SystemSevenOrLater
  49.     ,alertPositionMainScreen
  50. #endif
  51. };
  52.  
  53.  
  54. // DITL resource for our plug-in about box
  55. resource 'DITL' (ModuleRsrcID)
  56. {
  57.     {    
  58.         {90, 315, 110, 375},    Button     {enabled, "OK"},
  59.         {10,  70,  70, 370},    StaticText {disabled, FullModuleName" "Version"\n"},
  60.         {10,  20,  40,  50},    Icon       {disabled, 1}
  61.     }
  62. };
  63.  
  64. resource 'STR ' (ModuleRsrcID+1, purgeable) { "About "FullModuleName"…" };
  65. resource 'STR ' (ModuleRsrcID+2, purgeable) { "CGI Text..." };
  66. resource 'STR ' (ModuleRsrcID+3, purgeable) { "Now CGI-ing Text" };
  67.